search.parse();

var grid = search.get('datagrid');

//加载数据
function loadData(orderid) {
	grid.url = __ctx + '/order/goodListData.xhtml';
	grid.load({orderid : orderid});
}

//绘制表格单元格
function ondrawcell(e) {
	var field = e.column.field, record = e.record;
	switch (field) {
		case "goodnumber":
			e.html = "<span>" + record[field] + record["meteringunit"] + "</span>";
			break;
		case "goodtotal":
			e.html = "<span>" + record[field].toFixed(2) + "</span>";
			break;
	}
}